package classes.managers {
	import classes.buttons.BaseButton;
	import classes.scenes.A_Scene;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	/**
	 * ...
	 * @author Kihoonee
	 */
	public class Bomb_Manager extends A_Scene {
		
		private var rePlayBtn:BaseButton;
		
		public function Bomb_Manager( _main:Main, _mc:MovieClip ) {
			super( _main, _mc );
			
			addEvent();
		}
		
		public function init():void {
			mc.gotoAndPlay(1);
			rePlayBtn.visible = false;
		}
		
		private function addEvent():void {
			mc.addEventListener( "bomb_END", bomb_END );
			
			rePlayBtn = new BaseButton( mc.rePlay_btn );
			rePlayBtn.addEventListener( MouseEvent.CLICK, btnEvent );
		}
		
		private function bomb_END(e:Event):void {
			rePlayBtn.visible = true;
		}
		
		private function btnEvent(e:MouseEvent):void {
			main.viewChange( "game" );
			main.game1Init();
		}
		
	}

}